package com.rytx.system.service.impl;

import com.rytx.system.service.IArtFundingDetailsService;
import com.rytx.system.service.IArtOrderService;
import com.rytx.system.service.IArtUserService;
import com.rytx.system.service.IndexService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @program: ysp
 * @author: zhang zb
 * @create: 2024-09-02 14:21
 **/
@Service
public class IndexServiceImpl implements IndexService {

    @Autowired
    private IArtUserService artUserService;

    @Autowired
    private IArtOrderService artOrderService;

    @Autowired
    private IArtFundingDetailsService artFundingDetailsService;

    /**
     * 获取每周新增用户数
     * @return
     */
    @Override
    public Map<String, Integer> getWeekArtUserCount() {
        return artUserService.getWeekArtUserCount();
    }

    @Override
    public Map<String,Integer> getMonthArtUserCount() {
        return artUserService.getMonthArtUserCount();
    }

    @Override
    public Map<String,Integer> getYearArtUserCount() {
        return artUserService.getYearArtUserCount();
    }

    @Override
    public Map<String,Integer> getWeekArtCount() {
        return artOrderService.getWeekArtCount();
    }

    @Override
    public Map<String,Integer> getMonthArtCount() {
        return artOrderService.getMonthArtCount();
    }

    @Override
    public Map<String,Integer> getYearArtCount() {
        return artOrderService.getYearArtCount();
    }

    @Override
    public Map<String, BigDecimal> getYearIncome() {
        return artFundingDetailsService.getYearIncome();
    }

    @Override
    public Map<String, BigDecimal> getMonthIncome() {
        return artFundingDetailsService.getMonthIncome();
    }

    @Override
    public Map<String, BigDecimal> getWeekIncome() {
        return artFundingDetailsService.getWeekIncome();
    }

    @Override
    public Map<String, BigDecimal> getWeekPayout() {
        return artFundingDetailsService.getWeekPayout();
    }

    @Override
    public Map<String, BigDecimal> getMonthPayout() {
        return artFundingDetailsService.getMonthPayout();
    }

    @Override
    public Map<String, BigDecimal> getYearPayout() {
        return artFundingDetailsService.getYearPayout();
    }

}
